package com.wish.firstExample;

public class Client {
	
	public static void main(String[] args) {
		Price price = new ChildrensPrice();
		String movieTitle = "美人鱼";
		Movie movie = new Movie(movieTitle, price);
		
		Customer customer = new Customer(movie);
		
		int days = 2; // 影片租2天
		System.out.println("影片<<美人鱼>>-小孩-租期2天-价格为：" + customer.getCharge(days) + " 本次获得消费积分为:" + customer.getFrequentRenterPoints(days));
		
		
		price = new RegularPrice();
		movie = new Movie(movieTitle, price);
		customer = new Customer(movie);
		System.out.println("影片<<美人鱼>>-成人-租期2天-价格为：" + customer.getCharge(days)+ " 本次获得消费积分为:" + customer.getFrequentRenterPoints(days));
	}
}
